package com.cn.intelligence.resetful.service;

import java.util.List;
import java.util.Map;

import com.cn.intelligence.pojo.Areas;
import com.cn.intelligence.pojo.Cities;
import com.cn.intelligence.pojo.Provinces;
import com.cn.intelligence.pojo.TaotaoResult;
import com.cn.intelligence.pojo.TbAddress;
import com.cn.intelligence.pojo.TbUser;

public interface UserOrderService {

	Map<String,Object> getOrderInfo(Long userid, String orderStatus, int page, int rows);

	Map<String,Object>  getAddressInfo(Long userid);

	Map<String,Object> getsessionkey(String code, String sessionId);

	Map<String,Object> authlogin(TbUser tbuser);

	TbAddress addAddressInfo(TbAddress tbAddress);

	TbAddress updateAddressInfo(TbAddress tbAddress) throws Exception;

	Object selectOrderSTatus(Long userid);

	int updateOrderStatus(String orderId);

	Map<String,Object> selectOrderDetail(String orderId);

	List<Provinces> selectProvinces(String name, String id);

	List<Cities> selectCities(String name, String id);

	List<Areas> selectAreas(String name, String id);

	TaotaoResult deleteAddress(String userId, String addrId);

	TaotaoResult selectPayOrder(String orderId, String userId,String openId, String ip);

	int updateOrderStatus(String orderId, String status, String remark);

	TbUser getUserByOpenId(Long userid);
}
